include $(GNUSTEP_MAKEFILES)/common.make

PACKAGE_NAME = ApplicationServices
FRAMEWORK_NAME = ApplicationServices

ApplicationServices_SUBPROJECTS = \
	OpalGraphics
#\	OpalText is broken

ApplicationServices_OBJCFLAGS=-I../../

ifneq ($(GNUSTEP_TARGET_OS), mingw32)
ADDITIONAL_LDFLAGS += $(shell pkg-config --libs freetype2) -lfontconfig -lX11 -lXrender -lm 
ADDITIONAL_LDFLAGS += $(shell pkg-config --libs cairo)
else
LIBRARIES_DEPEND_UPON = -lgdi32 -lcairo
endif

LIBRARIES_DEPEND_UPON += $(shell pkg-config --libs lcms)
LIBRARIES_DEPEND_UPON += $(shell pkg-config --libs libpng)
LIBRARIES_DEPEND_UPON += $(shell pkg-config --libs libjpeg)
LIBRARIES_DEPEND_UPON += -ltiff
LIBRARIES_DEPEND_UPON += $(LIBOBJC) $(LIBRINGO) $(LIBMACH)


-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/framework.make
-include GNUmakefile.postamble
